<% layout('/layouts/default.html', {title: '客户还汇', libs: ['validate']}){ %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<#form:form id="inputForm" model="${billNegotiated}" action="${ctx}/financial/billnegotiated/billNegotiated/customerRemittanceSave" method="post" class="form-horizontal">
<#form:hidden path="billNegotiatedId"/>
实际还汇日期：	<#form:input path="customerActualRepaymentDate"  maxlength="20" class="form-control laydate"
dataFormat="date" data-type="date" data-format="yyyy-MM-dd"/>
实际汇率：<#form:input path="customerRealExchangeRate" maxlength="10" class="form-control"/>
<button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> ${text('保 存')}</button>&nbsp;
</#form:form>
</body>
</html>
<% } %>
<script>
    $("#inputForm").validate({
        submitHandler: function(form){
            js.ajaxSubmitForm($(form), function(data){
                js.showMessage(data.message);
                if(data.result == Global.TRUE){
                    js.closeCurrentTabPage(function(contentWindow){
                        contentWindow.page();
                    });
                }
            }, "json");
        }
    });
</script>